package com.data.modules.openapi.controller;

import com.data.common.api.vo.Result;
import com.data.common.aspect.annotation.AutoLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * openApi 内部实现接口
 *
 * @author: cmg
 * @since: 2022-04-06 18:49
 **/

@Api(tags="Biz")
@RestController("biz")
@RequestMapping("/biz")
@Slf4j
public class BusinessController {

    @AutoLog(value = "biz")
    @ApiOperation(value="biz", notes="biz-统一接口")
    @PostMapping(value = "/findAll")
    public Object findAll() {

        log.info("findAll==统一通行接口检查===>");
        return Result.OK("请求成功123123");
    }

}
